<?php
/**
 * Json View
 * @author Leo 2010-09-08
 *
 */

class JsonView extends View {
	public $merge_vars = false; //不需要合并变量
	public function render($data, $response, $tpl = '') {
		return json_encode ( $data );
	}
	public function setHeader() {
		@header ( 'Content-type: application/json' );
	}
}